<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<div id="app">
    <h1>价格:{{price}}</h1>
    <h1>添加价格符文:{{price | myCurrency('￥')}}</h1>
</div>
<script>
    new Vue({
        el:'#app',
        data:{
            price:356
        },
        filters:{
            myCurrency:function (myInput,arg1) {
                var result =arg1+myInput;
                return result;

            }
        }
    })
</script>
<body>

</body>
</html>